package work.chenxr.knife4j.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author Chenxr
 * @Date 2023/09/11
 * @Description 错误码
 */
@Getter
@AllArgsConstructor
public enum ErrorCode {
    UNAUTHORIZED(401, "还未授权，不能访问"),
    FORBIDDEN(403, "权限不足，禁止访问"),
    INTERNAL_SERVER_ERROR(500, "服务器异常，请稍后再试"),
    ;

    private final int code;
    private final String msg;
}
